<?php
 include ('/var/www/html/new/com.inc.php');
include('../../class/zMember.php');

$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$aid=$_SESSION['sid'];


 $s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true"));
	$sale=new zMember($s,$aid);
	$salepids=$sale->salePros();
    foreach($salepids as $key=>$v)
	{
		$title_arr[]=$v['title'];
		
		
	}
	
	$title_arr=array_unique($title_arr);
	echo count($title_arr)."<br/>";
	$title_arr=array_merge($title_arr);
	print_r($title_arr);
	// $str1="select * from pft_product_sale_list where fid=$aid";
	// $GLOBALS['le']->query($str1);
	// while($row=$GLOBALS['le']->fetch_assoc())
	// {print_r($row);}
	
	//$str="update pft_member_extinfo set com_type='OTA' where com_type='电商/团购网' limit 20";
	//$GLOBALS['le']->query($str);
	
	
	// $x2 = simplexml_load_string($s -> Order_Globle_Search( 
     // "","", "", "", "", "", "", "", "", "",
     // "", "", "", "", "", "", "", "", "1", "1",
     // "0", "10", "0", "0","","0","0", "0","","",
      // "", "", "", "", ""));
	  // print_r($x2);
	  // foreach($x2->Rec as $k=>$v)
	  // { $vb=(int)$v->UUpmode;
		 // if($vb==3)
			 // echo "ok";
	  // }
	  // foreach($x2->Rec as $v)
	  // { echo $v[UUpmode];
		 // if((int)$v[UUpmode]==3)
			 // $mn++;
	  // }

?>